<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>

<%
  String basePath = request.getContextPath();
  request.setAttribute("BasePath", basePath);
  request.setAttribute("ver", "1");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="msthemecompatible" content="no">
  <title></title>
  <link rel="stylesheet" type="text/css" href="${BasePath}/js/ext3/resources/css/ext-all-notheme.css?v=${ver }" />
  <link rel="stylesheet" type="text/css" href="${BasePath}/js/ext3/resources/css/ext-patch.css?v=${ver }" />
  <link rel="stylesheet" type="text/css" href="${BasePath}/js/ext3/ux/css/Portal.css?v=${ver }" />
  <link rel="stylesheet" type="text/css" href="${BasePath}/js/ext3/ux/css/Ext.ux.UploadDialog.css?v=${ver }" />
  <link rel="stylesheet" type="text/css" href="${BasePath}/css/admin.css?v=${ver }"/>
  <link rel="stylesheet" type="text/css" href="${BasePath}/js/ext3/ux/css/ux-all.css?v=${ver }"/>
  <script language="javascript">
    var __ctxPath="<%=request.getContextPath() %>";
    var __fullPath="<%=request.getScheme() + "://" + request.getHeader("host") +  request.getContextPath()%>";
    var VERSION = "${ver}";
  </script>
  <!-- Ext 核心JS -->
  <script type="text/javascript" src="${BasePath}/js/ext3/adapter/ext/ext-base.js"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ext-all.js"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ext-basex.js"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/jit.js"></script>


  <!--使用iframe加载的依赖JS  -->
  <script type="text/javascript" src="${BasePath}/js/ext3/miframe-debug.js?v=${ver }"></script>

  <!-- CK控件JS -->
  <script type="text/javascript" src="${BasePath}/js/ckeditor/ckfinder/ckfinder.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ckeditor/ckeditor_source.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/CKEditor.js?v=${ver }"></script>
  <!-- 意见编辑器 -->
  <script type="text/javascript" src="${BasePath}/js/core/ux/CommentEditor.js?v=${ver }"></script>

  <!-- 附件上传对话框 -->
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/UploadDialog.js?v=${ver }"></script>
  <!-- 附件明细JS,多处用到 -->
  <!-- AppUtil.js中引用附件上传的JS -->
  <script type="text/javascript" src="${BasePath}/js/system/FileUploadManager.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/system/FileUploadImageDetail.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/fileupload/swfobject.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/fileupload/FlexUploadDialog.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/UploadDialog/Ext.ux.UploadDialog.js?v=${ver }"></script>

  <script type="text/javascript" src="${BasePath}/js/system/GlobalTypeForm.js?v=${ver }"></script>

  <!-- 分页栏JS HTExt.js中引用 -->
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/PageComboResizer.js?v=${ver }"></script>

  <!-- 提示信息JS -->
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/Toast.js?v=${ver }"></script>

  <!-- GirdPanel中引用 -->
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/Ext.ux.grid.RowActions.js?v=${ver }"></script>

  <!-- 需要的 JS-->
  <script type="text/javascript" src="${BasePath}/js/core/App.import.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/XmlTreeLoader.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/TabCloseMenu.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/ext3/ux/DateTimeField.js?v=${ver }"></script>

  <!-- core 工具JS -->
  <script type="text/javascript" src="${BasePath}/js/core/ux/HTExt.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ScriptMgr.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/AppUtil.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ux/TreePanelEditor.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ux/TreeXmlLoader.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ux/ComboTree.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ux/AttachPanel.js?v=${ver }"></script>
  <script type="text/javascript" src="${BasePath}/js/core/ux/DicCombo.js?v=${ver }"></script>

  <!-- 日期转换JS,目前AppUtil.js已提供$parseDate()方法 ,后续可将此JS换掉-->
  <script type="text/javascript" src="${BasePath}/js/core/date.js?v=${ver }"></script>

  <script type="text/javascript" src="${BasePath}/js/export/ExportGridToExcel.js?v=${ver }"></script>

  <!-- 首页样式加载 -->
  <link href="${BasePath}/css/desktop.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript">
    var __companyName="";
    //var userInfo="{success:true,user:{userId:'9',fullname:'aa',username:'aa',rights:'__ALL',topModules:[{'id':'Mod_Oa','title':'协同办公','iconCls':'mod-oa','isPublic':true,'sn':1},{'id':'Mod_Myflow','title':'我的流程','iconCls':'mod-myflow','isPublic':false,'sn':2},{'id':'Mod_Hr','title':'人力管理','iconCls':'mod-hr','isPublic':false,'sn':3},{'id':'Mod_Cust','title':'客户管理','iconCls':'menu-customer','isPublic':false,'sn':4},{'id':'Mod_Order','title':'订单管理','iconCls':'menu-order','isPublic':false,'sn':5},{'id':'Mod_Sys','title':'系统管理','iconCls':'mod-setting','isPublic':false,'sn':6}],items:[{'panelId':'TaskPanelView','column':0,'row':0},{'panelId':'ProjectSchedulePanelView','column':0,'row':1},{'panelId':'CalendarPlanPanelView','column':1,'row':0},{'panelId':'MessagePanelView','column':1,'row':1}]},sysConfigs:{'goodsStockUser':'admin','codeConfig':'0','smsMobile':'1','deviceName':'COM4','baudRate':'9600','suggestId':'1','suggestName':'管理员','dynamicPwd':'2','dynamicUri':'http://www.yoo-e.com/cbsite/authsys/api/','smsPortUri':'http://58.63.224.34:8000/smsweb/services/sms','smsPortUserID':'','smsPortAccount':'','smsPortPwd':'','sectionColumn':'2'}}";
    var userInfo="${currentUser}";
    Ext.onReady(function(){
      var storeTheme=getCookie('theme');
      if(storeTheme==null || storeTheme==''){
        storeTheme='ext-all';
      }
      Ext.util.CSS.swapStyleSheet("theme", __ctxPath+"/js/ext3/resources/css/"+storeTheme+".css");
      window.onbeforeunload = function() {
        var isout=Ext.get("logout").value;
        window.unloadTimer = setInterval("Ext.get('logout').value='';clearInterval(window.unloadTimer);",100);
        if(isout=="isout"){
          window.onunload = function() {App.runOnUnload();clearInterval(window.unloadTimer);};
        }else{
          window.onunload = function() {clearInterval(window.unloadTimer);};
        }
        return '你确定吗？';
      };
    });

  </script>

  <!-- 登录信息,工具JS -->
  <script type="text/javascript" src="${BasePath}/js/core/App.js?v=${ver }"></script>

  <!-- 个人首页JS -->
  <script type="text/javascript" src="${BasePath}/js/core/IndexPage.js?v=${ver }"></script>


  <script type="text/javascript" src="${BasePath}/js/ext3/ext-lang-zh_CN.js?v=${ver }"></script>

  <script type="text/javascript" src="${BasePath}/js/area.js"></script>
</head>
<body oncontextmenu="return false" >
<div id="loading">
  <div class="loading-indicator">
    <img src="${BasePath}/images/loading.gif" alt="" width="153" height="16" style="margin-right:8px;" align="absmiddle"/>
    <div class="clear"></div>
    正在加载，请稍候......
  </div>
</div>
<div id="loading-mask"></div>
<div id="app-header">
  <div id="header-left">
    <!-- img id ="CompanyLogo" src="" height="50" style="max-width:230px;margin-top:4px;"/ -->
  </div>
  <div id="header-main">
    <div id="header-info">
      <a href="#" onclick="App.clickTopTab('AppHome')" style="text-indent:25px; padding-left: 28px" class="menu-desktop">个人桌面</a>
      &nbsp;
      欢迎您，<security:authentication property="principal.fullname"/>，[<a href="#" onclick = "App.Logout()">注销</a>]
    </div>
    <div id="header-nav"></div>
  </div>
  <div id="header-right">
    <div id="setting">
    </div>
    <div id="searchFormDisplay" style="width:260px;height:30px;float:right;padding-top:10px;">&nbsp;</div>
  </div>
</div>
<input type="hidden" id="logout"/>
</body>
</html>